﻿<%@ Page Title="Đăng ký" Language="C#" MasterPageFile="~/Index.Master" AutoEventWireup="true"
    CodeBehind="Register.aspx.cs" Inherits="EC_Agent.SignIn" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Title" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Maincontent" runat="server">
    <h1 align="center" >Đăng ký</h1>
    <br />
    <table align="center" style="border: thin solid #009999; width: 663px">
        <tr>
            <td colspan="2">
                <h4 align="center" 
                    style="border-style: none none solid none; border-bottom-width: thin; border-bottom-color: #000000; color: #FFFFFF; background-color: #33CCCC;">THÔNG TIN TÀI KHOẢN</h4>
            </td>
        </tr>
        <tr>
            <td style="width: 156px">
                Tên tài khoản:
            </td>
            <td>
                <asp:TextBox ID="txtUsername" runat="server" Height="28px"  Width="178px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="txtUsername"
                    ErrorMessage="Phải nhập Tên tài khoản." ToolTip="Phải nhập Tên tài khoản." ValidationGroup="Account">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="regUsername" runat="server" ErrorMessage="Độ dài phải từ 6 đến 20 kí tự" ControlToValidate="txtUsername" ValidationExpression=".{6,20}">
                </asp:RegularExpressionValidator>
                <asp:Label ID="labCheckUser" runat="server" Visible="False" ForeColor="#FF3300"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="width: 156px">
                Mật khẩu:
            </td>
            <td>
                <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" Height="28px" 
                    Width="178px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                    ControlToValidate="txtPassword" ErrorMessage="Phải nhập password" 
                    ToolTip="Phải nhập password">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegPassword" runat="server" ErrorMessage="Độ dài phải từ 6 đến 20 kí tự" ControlToValidate="txtPassword" ValidationExpression=".{6,20}">
                </asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 156px">
                Lặp lại Mật khẩu:
            </td>
            <td>
                <asp:TextBox ID="txtConfirmPassword" runat="server" TextMode="Password" 
                    Height="28px" Width="177px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="ConfPassRequired" runat="server" 
                    ControlToValidate="txtConfirmPassword" ErrorMessage="Phải nhập lại password" 
                    ToolTip="Phải nhập lại password">*</asp:RequiredFieldValidator>
                <asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="txtPassword"
                    ControlToValidate="txtConfirmPassword" Display="Dynamic"
                    ValidationGroup="txtPassword" ErrorMessage="Mật khẩu không trùng nhau"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <h4 align="center" 
                    style="border-style: none none solid none; border-bottom-width: thin; border-bottom-color: #000000; color: #FFFFFF; background-color: #33CCCC;">Thông tin cá nhân</h4>
            </td>
        </tr>
        <tr>
            <td style="width: 156px">
                Họ tên:
            </td>
            <td>
                <asp:TextBox ID="txtTenKH" runat="server" Height="28px" Width="219px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 156px">
                Email:
            </td>
            <td>
                <asp:TextBox ID="txtEmail" runat="server" Height="28px" Width="219px"></asp:TextBox>
                <asp:RegularExpressionValidator id="regEmail" ControlToValidate="txtEmail" Text="Email không hợp lệ" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
Runat="server"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td style="height: 29px; width: 156px;">
                Ngày sinh:
            </td>
            <td style="height: 29px">
                <asp:DropDownList ID="ddlDay" runat="server" Height="28px" Width="53px">
                    <asp:ListItem>1</asp:ListItem>
                    <asp:ListItem>2</asp:ListItem>
                    <asp:ListItem>3</asp:ListItem>
                    <asp:ListItem>4</asp:ListItem>
                    <asp:ListItem>5</asp:ListItem>
                    <asp:ListItem>6</asp:ListItem>
                    <asp:ListItem>7</asp:ListItem>
                    <asp:ListItem>9</asp:ListItem>
                    <asp:ListItem>10</asp:ListItem>
                    <asp:ListItem>11</asp:ListItem>
                    <asp:ListItem>12</asp:ListItem>
                    <asp:ListItem>13</asp:ListItem>
                    <asp:ListItem>14</asp:ListItem>
                    <asp:ListItem>15</asp:ListItem>
                    <asp:ListItem>16</asp:ListItem>
                    <asp:ListItem>17</asp:ListItem>
                    <asp:ListItem>18</asp:ListItem>
                    <asp:ListItem>19</asp:ListItem>
                    <asp:ListItem>20</asp:ListItem>
                    <asp:ListItem>21</asp:ListItem>
                    <asp:ListItem>22</asp:ListItem>
                    <asp:ListItem>23</asp:ListItem>
                    <asp:ListItem>24</asp:ListItem>
                    <asp:ListItem>25</asp:ListItem>
                    <asp:ListItem>26</asp:ListItem>
                    <asp:ListItem>27</asp:ListItem>
                    <asp:ListItem>28</asp:ListItem>
                    <asp:ListItem>29</asp:ListItem>
                    <asp:ListItem>30</asp:ListItem>
                    <asp:ListItem>31</asp:ListItem>
                    <asp:ListItem></asp:ListItem>
                </asp:DropDownList>
                <asp:DropDownList ID="ddlMonth" runat="server" Height="28px" Width="84px">
                    <asp:ListItem Value="1">Tháng 1</asp:ListItem>
                    <asp:ListItem Value="2">Tháng 2</asp:ListItem>
                    <asp:ListItem Value="3">Tháng 3</asp:ListItem>
                    <asp:ListItem Value="4">Tháng 4</asp:ListItem>
                    <asp:ListItem Value="5">Tháng 5</asp:ListItem>
                    <asp:ListItem Value="6">Tháng 6</asp:ListItem>
                    <asp:ListItem Value="7">Tháng 7</asp:ListItem>
                    <asp:ListItem Value="8">Tháng 8</asp:ListItem>
                    <asp:ListItem Value="9">Tháng 9</asp:ListItem>
                    <asp:ListItem Value="10">Tháng 10</asp:ListItem>
                    <asp:ListItem Value="11">Tháng 11</asp:ListItem>
                    <asp:ListItem Value="12">Tháng 12</asp:ListItem>
                </asp:DropDownList>
                <asp:DropDownList ID="ddlYear" runat="server" Height="28px" Width="81px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td style="width: 156px">
                Địa chỉ:
            </td>
            <td>
                <asp:TextBox ID="txtDiaChi" runat="server" Height="28px" Width="218px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 156px">
                Điện thoại:
            </td>
            <td>
                <asp:TextBox ID="txtDienThoai" runat="server" Height="28px" Width="158px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 156px">
                Số thẻ tín dụng:
            </td>
            <td>
                <asp:TextBox ID="txtSoTheTinDung" runat="server" Height="28px" Width="218px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="center" colspan="2">
                <asp:Button ID="btnDangKi" runat="server" Font-Bold="True" 
                    onclick="btnClick_Register" Text="Đăng ký" Width="98px" />
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="sidecontent" runat="server">
<p class="title_general">
        <b>Menu khách hàng</b></p>
    <ul>
        <li id = "DangNhap" runat="server" class="city_item"><a href="LoginKhachHang.aspx">Đăng nhập</a></li>
        <li id = "DangKy" runat="server" class="city_item"><a href="Register.aspx">Đăng ký</a></li>
        <li id = "UpdateInfo" runat="server" class="city_item"><a href="UpdatePersonalInfo.aspx">Cập nhật thông tin cá nhân</a></li>
        <li id = "LichSuGD" runat="server" class="city_item"><a href="HistoryOfTransaction.aspx">Lịch sử giao dịch</a></li>
        <li id = "Logout" runat="server" class="city_item"><a href="LogoutKhachHang.aspx">Đăng xuất</a></li>
    </ul>
</asp:Content>
